﻿using System;
using System.Windows.Data;
using System.Windows;

namespace CharacterCreation.Converters {
    public class VisibilityConverter : IValueConverter {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
            if (parameter == null)
                return value == null ? Visibility.Collapsed : Visibility.Visible;
            else
                return value != null ? Visibility.Collapsed : Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
            throw new NotImplementedException();
        }
    }
}
